from utils import get_web

def test_web(ip, port, username, password, report):
    uris = [
        "/UI/Static/#/navigate/system/info/product",
        "/UI/Static/#/navigate/system/info/processor",
        "/UI/Static/#/navigate/maintenance/alarm",
        "/UI/Static/#/navigate/home",
        "/UI/Static/#/navigate/manager/network"
    ]
    for uri in uris:
        rsp, rsp_time = get_web(ip, port, (username, password), uri, report)
        if rsp is not None:
            print(f"✅ {uri}的响应返回值为{rsp}, 响应时间为{rsp_time}")
        else:
            print(f"❌ {uri}的响应失败, 返回值为{rsp}, 响应时间为{rsp_time}")